package com.platform.comm.message;

import com.platform.comm.enums.MessageType;
import lombok.Data;

import java.io.Serializable;

/**
 * Description:
 *
 * @author zyk
 */
@Data
public class CommonMessage implements Serializable {

    private static final long serialVersionUID = 4878921116562346470L;

    private String id;

    private MessageType type;

    private String body;

    private long createTime;

    public CommonMessage() {
    }

    public CommonMessage(String id, MessageType type, String body, long createTime) {
        this.id = id;
        this.type = type;
        this.body = body;
        this.createTime = createTime;
    }
}
